import { createRouter, createWebHashHistory } from 'vue-router';
import Overview from '../views/home/Overview.vue';
import Area from '../views/home/Area.vue';
import Crossing from '../views/home/Crossing.vue';
import TrunkRoad from '../views/home/TrunkRoad.vue';
import Car from '../views/home/Car.vue';
import Guide from '../views/guide/Guide.vue';

const routes = [
  {
    path: '/',
    name: 'Index',
    redirect: '/Overview',
    component: Guide
  },
  {
    path: '/Guide',
    name: 'Guide',
    component: Guide
  },
  {
    path: '/Overview',
    name: 'Overview',
    component: Overview
  },
  {
    path: '/Area',
    name: 'Area',
    component: Area
  },
  {
    path: '/Crossing',
    name: 'Crossing',
    component: Crossing
  },
  {
    path: '/TrunkRoad',
    name: 'TrunkRoad',
    component: TrunkRoad
  },
  {
    path: '/Car',
    name: 'Car',
    component: Car
  }
];
const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
